<?php
namespace Lib;
class Caption{
    public $text = '';
    public $favorite = false;
    public $additional = false;
    public $widget = false;
    public $postAdditional = false;

    public $additionalContent = '';
    
    public function setText($text){
        $this->text = $text;
    }
    public function setFavorite($url = false){
        if(!$url) {
            $this->favorite = false;
            return;
        }
        $this->favorite->url = $url;
    }
    public function setAdditional($additional = false){
        $this->additional = $additional;
    }
    
    public function setAdditionalWidget($widget = false, $content = ''){
        $this->widget = $widget;
        $this->additionalContent = $content;
    }

    public function setPostAdditional($postAdditional = false) {
        $this->postAdditional = $postAdditional;
    }

    public function getPostAdditional() {
        return $this->postAdditional;
    }


}